snippet nx
	next();
snippet new
	var $1 = new ${2:func}();
snippet listen
	app.listen(3000);
#########################################################################
#											module    											#
#########################################################################
snippet req.m
	var ${2:$1} = require('../model/${1:message}');
snippet req;
	var ${2:$1} = require('${1:message}');
snippet seq
	var Sequelize = require ('sequelize');

	var sequelize = new Sequelize (
			'${1:database}',
			'${2:root}',
			'${3:passwd}',
			{
				'dialect': 'mysql',
				'host': 'localhost',
				'port': 3306
			}
	);
snippet mod
	var ${1:Message} = sequelize.define('${2:$1}', {
		fie+$0
	});
	$1.sync();
snippet fie
	${1:field}:{
		$0
	},
snippet fie+
	${1:field}:{
		$2
	},
	fie+$0
snippet id
	id:{
		type:Sequelize.INTEGER,
		primaryKey: true,
		autoIncrement:true
	},
snippet str
	type: Sequelize.STRING(${1:30}),
snippet int
	type:Sequelize.INTEGER,
snippet txt
	type: Sequelize.TEXT,
snippet pk
	primaryKey: true,
snippet ai
	autoIncrement:true,
#########################################################################
#											router    											#
#########################################################################
snippet rou
	var express = require('express');
	var router = express.Router();

	$0

	module.exports = router;
snippet r.
	router.route('/${1:path}')
		.$0
snippet .get
	.get(function(req, res, next) {
		$0
		next();
	})
snippet .post
	.post(function(req, res, next) {
		$0
		next();
	})
snippet .all
	.all(function(req, res, next) {
		$0
		next();
	})
snippet r.get
	/* GET $2 page */
	router.get('/$1', function(req, res, next) {
		$0
	});
snippet r.post
	/* POST $2 page */
	router.post('/$1', function(req, res, next) {
		$0
	});
snippet r.all
	/* POST $2 page */
	router.all('/$1', function(req, res, next) {
		$0
	});
snippet rnd
	res.render('${1:index}', { title: 'Express' });
snippet snd
	res.send('${1:string}');
snippet 404
	res.render('404', {});
#########################################################################
#								midle wave 								#
#########################################################################
snippet use
	app.use( ${1:'/',} {$0});
